package com.zttek.photosShareProject.modules.service.share;

import com.zttek.photosShareProject.common.myException.DBException;
import com.zttek.photosShareProject.modules.model.Abuse;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Y
 * Date: 2017-08-19
 * Time: 16:31
 */
public interface IAbuseService {

    int SHARE = 0;
    int COMMENT = 1;


    /**
     * 举报分享
     *
     * @param shareId  *
     * @param informerId *
     * @param reason  *
     */
    void abuseShare(long shareId, long informerId, String reason) throws Exception;

    /**
     * 举报评论
     *
     * @param commentId  *
     * @param informerId *
     * @param reason  *
     */
    void abuseComment(long commentId, long informerId, String reason) throws Exception ;

    /**
     * 查询举报
     * @param abuseId *
     * @return *
     */
    Abuse selectAbuse(Long abuseId) throws Exception;

    /**
     * 处理举报
     * @param abuseId *
     * @param isPassed *
     */
    void handle(Long abuseId, boolean isPassed) throws Exception;
}
